﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace ProjectPacker
{
    public class ConfigClass
    {
        /// <summary>
        /// 程序状态
        /// </summary>
        public enum States
        {
            OK,
            Exception
        }
        private static States state = States.OK;
        public static States State
        {
            get
            {
                return state;
            }
        }
        /// <summary>  
        /// 检测配置文件是否存在
        /// </summary>  
        /// <returns>文件存在状态</returns>   
        public static States FileDetect(String ConfigFileName)
        {
            if (File.Exists(ConfigFileName))
            {
                return States.OK;
            }
            else
            {
                return States.Exception;
            }
        }
    }
}
